﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data.Entity.ModelConfiguration;

namespace CubicFWNet.Data.Models.Mapping
{
    public class TaskRemindMap : EntityTypeConfiguration<TaskRemind>
    {
        public TaskRemindMap()
        {
            this.HasKey(t => t.Id);

            this.Property(t => t.Name)
             .HasMaxLength(128);

            this.Property(t => t.Url)
           .HasMaxLength(1024);


            this.ToTable("TaskRemind");
            this.Property(t => t.Id).HasColumnName("Id");
            this.Property(t => t.Number).HasColumnName("Number");
            this.Property(t => t.Name).HasColumnName("Name");
            this.Property(t => t.Count).HasColumnName("Count");
            this.Property(t => t.Sort).HasColumnName("Sort");
            this.Property(t => t.Url).HasColumnName("Url");

        }
    }
}
